<div class="templatemo-content-wrapper">
  <div class="templatemo-content">
  <ul class="nav nav-tabs mytabs">
     <li  class="active"><a href="<?=site_url()?>/order/index">返回订单列表</a></li>
  </ul>

<div class="" style="padding-bottom:20px;min-width:1055px;">


  <div class="btn-group">
    <!--
    <button class="btn btn-primary" id="order_remind">短信提醒</button>
    -->

    <button class="btn btn-primary" id="printer" data-direction=2>打印</button>
 </div>
</div>
<script type="text/javascript">
  //console.log(<?=json_encode($results)?>)
</script>


    <div class="row">
      <div class="col-md-12">
        <div class="table-responsive">
          <?php foreach ($results as $item):?>
          <table class="table table-striped table-hover table-bordered print">

            <tbody>
            	<tr><td colspan="<?=count($item['result'])?>"><?=$item['title']?></td></tr>
              <?php foreach ($item['result'] as $item2):?>
                <tr>
                  <?php foreach ($item2 as $item3):?>
                    <td><?=$item3?></td>
                  <?php endforeach;?>
                </tr>
              <?php endforeach;?>
            </tbody>
          </table>
          <?php endforeach;?>
        </div><div class="pagination" style="margin-bottom:20px;">

      </div>
    </div>
  </div>
</div>
<script>
$(document).ready(function() {
$('#sdate').datepicker({
dateFormat: 'yy-mm-dd',
monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
dayNamesMin: ['日','一','二','三','四','五','六']
});
$('#edate').datepicker({
dateFormat: 'yy-mm-dd',
monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
dayNamesMin: ['日','一','二','三','四','五','六']
});

$("#order_count").click(function() {
var sdate = $("#sdate").val();
var edate = $("#edate").val();
var url = "<?php echo site_url('order/exportNewOrders')?>";
window.location.href=url+"/sdate/"+sdate+"/edate/"+edate;
});






</script>
